home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
ein
/
sources
/
einlib.lzh
/
LIBSRC.LZH
/
EIN_FL04.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-18
|
2KB
|
78 lines
/*<Header>==============================================================
*
* FILE MANAGER / "EIN_FL04.C"
*
* [ EIN(tm) project : âtâ@âCâïæÇì∞òΓÅòè╓ÉöîQ ]
*
* COPYRIGHT Nam 1994, All rights reserved.
*
*-----------------------------------------------------------------------
* V1.0L01â┐ 94.07.07/Nam âvâìâgâ^âCâv
*</Header>==============================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <snd.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
#define EIN_FILE
#include "..\eintm.h"
#ifndef NOERR
#define NOERR (0)
#endif
#ifndef ERROR
#define ERROR (1)
#endif
/* from EIN_ASM1.ASM */
extern void EIN_setVector( unsigned long * );
extern void EIN_resetVector( unsigned long * );
/*<Func>================================================================
* FILE *EIN_fopen( char *fullpath, char *mode )
*
* üyèT ùvüz âtâ@âCâïé≡âIü[âvâôé╡é─âtâ@âCâïânâôâhâïé≡ò╘é╡é▄é╖üB
*
* üyï@ ö\üz Æ╩Åφé╠'fopen()'é╞ô»ùlé╔Ägùpé┼é½é▄é╖üB
* int24hânâôâhâëé≡âtâbâNé╡é─éóéΘé╠é┼üAâhâëâCâué╔âAâNâZâX
* é┼é½é╚é⌐é┴é╜ÅΩìçé┼éαâVâFâïé╠âAâëü[âgé≡Åoé╡é▄é╣é±üB
*
* üyôⁿ ù═üz
* *fullpath : âIü[âvâôé╖éΘâtâ@âCâïû╝ò╢ÄÜù±é╓é╠â|âCâôâ^
* *mode : âéü[âhò╢ÄÜù±é╓é╠â|âCâôâ^
*
* üyÅo ù═üz
*
* üyè╓ÉöÆlüz != NULL É│ÅφÅIù╣(âtâ@âCâïâ|âCâôâ^)
* == NULL ê┘ÅφÅIù╣
*
* üyÆì ê╙üz
*
* üyÄQ Å╞üz
*
*-----------------------------------------------------------------------
* V11L10 1994.07.07/Nam
*</Func>==============================================================*/
FILE *EIN_fopen( char *fullpath, char *mode )
{
unsigned long vect[3]; /* int24hânâôâhâëé╠æ▐ö≡ùp */
FILE *fp;
if ( fullpath == NULL){
return NULL;
}
if ( strlen( fullpath ) < 1 ){
return NULL;
}
EIN_setVector( vect ); /* int24hé≡âtâbâN */
fp = fopen( fullpath, mode );
EIN_resetVector( vect ); /* int24hânâôâhâëé≡ò£ïA */
return fp;
}